<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------

return [
    // 驱动方式
    'type'   => env('CACHE_TYPE'),
    // 缓存保存目录
    'path'   => '',
    // 缓存前缀
    'prefix' => env('CACHE_PREFIX', ''),
    // 缓存有效期 0表示永久缓存
    'expire' => 0,
    // Redis配置
    'redis'  => [
        'host'     => env('CACHE_REDIS_HOST', '127.0.0.1'),
        'port'     => env('CACHE_REDIS_PORT', 6379),
        'password' => env('CACHE_REDIS_PASSWORD', ''),
        'select'   => env('CACHE_REDIS_SELECT', 0),
        'timeout'  => 0,
        'expire'   => 0,
        'persistent' => false,
        'prefix'   => env('CACHE_PREFIX', ''),
    ],
];
